﻿<UserControl x:Class="AtletIS.Shared.WpfControls.PressControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             FontFamily="Trebuchet MS"
             d:DesignHeight="600" d:DesignWidth="800" xmlns:my="clr-namespace:AtletIS.Shared.WpfControls" Loaded="UserControl_Loaded" Background="LightSteelBlue" AllowDrop="False">

    <UserControl.Resources>
        <Style TargetType="{x:Type ListBoxItem}">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="{x:Type ListBoxItem}">
                        <TextBlock Name="TheBGControl"><ContentPresenter /></TextBlock>
                        <ControlTemplate.Triggers>
                            <Trigger Property="IsSelected" Value="True">
                                <Setter Property="Background" Value="LightSteelBlue" TargetName="TheBGControl" />
                            </Trigger>
                        </ControlTemplate.Triggers>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
    </UserControl.Resources>

    <Grid Name="gMain">
        
        <Grid.RowDefinitions>
            <RowDefinition Height="100"/>
            <RowDefinition Height="*" />
            <RowDefinition Height="50" />
        </Grid.RowDefinitions>

        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="342px"/>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="200px"/>
        </Grid.ColumnDefinitions>

        <my:CompetitionBox 
            Grid.Row="0"  Grid.Column="0" Grid.ColumnSpan="3"
            x:Name="cbTitle" />

        <ListBox 
            Grid.Row="1" Grid.RowSpan="2" Grid.Column="0" Margin="15,0,5,5"
            Name="lbDisciplineList" SelectionChanged="lbDisciplineList_SelectionChanged" 
            BorderBrush="SteelBlue" BorderThickness="1"
            ScrollViewer.VerticalScrollBarVisibility="Visible" />
        
        <Border
            Grid.Column="2" Grid.Row="1" Margin="5" >
        
            <StackPanel
                Orientation="Vertical" >
            
                <Button
                    Name="btnStartList" Content="_Start list"
                    Margin="10,5" Padding="20" FontSize="18" Click="btnStartList_Click"
                    BorderThickness="1" BorderBrush="SteelBlue" Background="White" Foreground="SteelBlue" />

                <Button
                    Name="btnResults" Content="_Results"
                    Margin="10,5" Padding="20" FontSize="18" Click="btnResults_Click"
                    BorderThickness="1" BorderBrush="SteelBlue" Background="White" Foreground="SteelBlue" />

                <Button
                    Name="btnLiveResults" Content="_Live Results"
                    Margin="10 25 10 5" Padding="20" FontSize="18"  
                    BorderThickness="1" BorderBrush="SteelBlue" Background="White" Foreground="SteelBlue" Click="btnLiveResults_Click" />

                <Button
                    Name="btnChipResults" Content="Chip Results"
                    Margin="10 25 10 5" Padding="20" FontSize="18"  
                    BorderThickness="1" BorderBrush="SteelBlue" Background="White" Foreground="SteelBlue" Click="btnChipResults_Click" />
                
                <Button
                    Name="btnChipViewer" Content="Chip _Viewer"
                    Margin="10 5 10 5" Padding="20" FontSize="18" Click="btnChipViewer_Click" 
                    BorderThickness="1" BorderBrush="SteelBlue" Background="White" Foreground="SteelBlue" />

            </StackPanel>

        </Border>

        <StackPanel 
            Grid.Column="1" Grid.ColumnSpan="2" Grid.Row ="2" Margin="5 0" Orientation="Horizontal" HorizontalAlignment="Right" >
            
            <Button 
                Name="btnClose" Margin="10 5" Width="100" Content="_Close" FontSize="16" 
                BorderThickness="1" BorderBrush="SteelBlue" Background="White" Foreground="SteelBlue" Click="btnClose_Click" />

        </StackPanel>

    </Grid>
</UserControl>
